package com.soap.desensitize.encry;

import com.soap.desensitize.exception.strategy.DecodeException;
import com.soap.desensitize.exception.strategy.EncodeException;

/**
 * @desc 策略类顶级接口
 * @param <T>
 */
public interface IDesensitization<T> {
    /**
     * @desc 加密
     * @return
     */
    public T encode(T data) throws EncodeException;

    /**
     * @desc	解密
     * @return
     */
    public T decode(T data) throws DecodeException;
}
